package com.itheima.d4_tcp1.ZengTcpTest;

import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 * @ClassName client
 * @Author 16799
 * @Date 2025/9/26 18:39
 * @Version 1.0
 * @Description TODO
 **/
public class client {
    public static void main(String[] args) throws Exception {
        Socket socket = new Socket("127.0.0.1",8877);

        OutputStream os = socket.getOutputStream();
        DataOutputStream dos = new DataOutputStream(os);

        dos.writeUTF("洪哥牛逼");
        dos.close();
        socket.close();
    }
}
